import { computed } from "vue"
import { useRoute } from 'vue-router'


//获取当前页面路由参数
export const onlyId = computed (()=>{
    const only = Array.from(useRoute().path).reverse().join("").indexOf("/")
    const only1 = Array.from(useRoute().path).reverse().join("").slice(0, only)
    return Array.from(only1).reverse().join("")
})